import { createContext } from "react";

interface AuthContextType {
  isAuthenticated: boolean;
  user: any;
  token: string | null;
  setIsAuthenticated: (value: boolean, user?: any, token?: string) => void;
  logout: () => void;
}

export const AuthContext = createContext<AuthContextType>({
  isAuthenticated: false,
  user: null,
  token: null,
  setIsAuthenticated: () => {},
  logout: () => {},
});